package com.trade.module.daq.service.impl;

import com.trade.common.utils.ResponseBean;
import com.trade.module.daq.entity.SystemInfo;
import com.trade.module.daq.repository.SystemInfoRepository;
import com.trade.module.daq.service.SystemInfoService;
import com.trade.module.database.meta.TableMetaData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Desc: 数据源系统服务层
 * @Version: v1.0 2017/12/8 15:15
 * @Author: zfb
 * @JDK Version: 1.8.0_51
 */
@Service
@Transactional
public class SystemInfoServiceImpl implements SystemInfoService{

    @Autowired
    private SystemInfoRepository systemInfoRepository;

    /**
     * 新增
     * @param systemInfo 系统对象
     * @return systemInfo
     */
    @Override
    public SystemInfo save(SystemInfo systemInfo) {
        return systemInfoRepository.save(systemInfo);
    }

    /**
     * 检测同步
     * @param systemId 系统id
     * @return ResponseBean
     */
    @Override
    public ResponseBean<List<TableMetaData>> getSynTableList(String systemId) {

        return null;
    }
}
